package com.vhall.component.entity.tag;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 广告表
 *
 * @TableName advertising
 */

/**
 * 广告表
 *
 * @TableName advertising
 */
@TableName(value = "advertising")
@Data
public class AdvertisingEntity implements Serializable {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 跳转链接
     */
    @TableField("url")
    private String url;

    /**
     * 所属栏目ID
     */
    @TableField(value = "column_id")
    private Integer columnId;

    /**
     * 房间id
     */
    @TableField(value = "il_id")
    private Integer ilId;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 上架状态：0-未上架，1-已上架 2 已下架
     */
    @TableField(value = "is_shelves")
    private Integer isShelves;

    /**
     * 图片
     */
    @TableField(value = "image")
    private String image;

    /**
     * 开始时间
     */
    @TableField(value = "start_time")
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    /**
     * 修改时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 是否删除>0|否,1|是
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 投放位置：placement_location
     */
    @TableField(value = "placement_location")
    private Integer placementLocation;

    /**
     * 投放类型：ad_type
     */
    @TableField(value = "ad_type")
    private Integer adType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "直播来源,从创建人身上获取")
    @TableField("org_code")
    private String orgCode;

    @ApiModelProperty(value = "直播来源,从创建人身上获取")
    @TableField("org_name")
    private String orgName;
}